home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.tools.mfc,comp.os.ms-windows.nt.pre-release,comp.lang.c++
- Path: artemis.sto.fdata.se!news
- From: wmguol@sto.fdata.se (Ola Gunnars)
- Subject: Re: Catastrophic OLE Error
- Sender: news@artemis.sto.fdata.se (UseNet NetNews)
- Message-ID: <DpMzp5.HJH@artemis.sto.fdata.se>
- Date: Wed, 10 Apr 1996 06:54:04 GMT
- References: <31689491.151762072@newsserv.ctp.com>
- Organization: WM-data F÷rsvarsdata AB, Sweden
- X-Newsreader: Forte Free Agent 1.0.82
-
- sayer@ctp.com (Stephen D. Ayers) wrote:
-
-
- >I have built a very small OCX using the VC++ 4.1 project Wizard. The
- >control supports a single method with no arguments and no return
- >value.
-
- >The VC++ OLE test container tool works fine. It allows me to invoke
- >methods without difficulty.
-
- >However, whenever I try invoking methods on the object from VB, VBA
- >within Excel, or VC++ clients they all return "OLE Automation error -
- >Catastrophic failure" after a successful object create.
-
- >This is running under NT 4.0 Beta 1.
-
- >Am I missing something? Is this the proper way to create OCX objects?
-
- >Thanks,
-
- How are you using the ocx ...
- You must use it in an form and get the object member ...
- dim obj as object
-
- set obj = myocxinmyform.object
- obj.myfunc()
-
- /Ola
-
-
-